package com.xxin.core.annotaion;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.annotation.*;

/**
 * @author lvjx
 * @description 组合式注解，将RestController和RequestMapping整合
 * @date 2024/9/6 15:28
 */

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RestController
@RequestMapping
public @interface PetRestController {

	@AliasFor(annotation = RequestMapping.class)
	String name() default "";
	
	@AliasFor(annotation = RequestMapping.class)
	String[] value() default{};
}
